<template>
  <div id="app">

    <transition name="vant" mode="out-in">
      <router-view/>
    </transition>

    <VFoot></VFoot>
  </div>
</template>

<script>
import Vue from 'vue'
import { Toast } from 'vant'
Vue.use(Toast)

export default {
  // beforeMount () {
  // Toast.loading({
  //   message: '加载中...',
  //   forbidClick: true,
  //   overlay: true,
  //   loadingType: 'spinner',
  //   duration: 0
  // })
  // },
  // watch: {
  //   '$route': function (val, oldval) {
  //     console.log(this.$router)
  //     console.log(val)
  //     console.log('new', val.name)
  //     console.log('old', oldval.name)
  //   }
  // }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;

  a {
    font-weight: bold;
    color: #2c3e50;
    &.router-link-exact-active {
      color: #42b983;
    }
  }

  .vant-enter-active{
    animation: fadeInUp .6s;
  }
  .vant-leave-active{
    animation: fadeInUp .3s reverse;
  }
}
</style>
